home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 52
/
Amiga Format AFCD52 (Issue 136, May 2000).iso
/
-serious-
/
programming
/
c
/
icu-1.3.1
/
icuapps
/
locexp
/
tools
/
genindex.sh
< prev
next >
Wrap
Linux/UNIX/POSIX Shell Script
|
2000-02-23
|
363b
|
14 lines
#!/bin/sh
echo "# Generated by genIndex.sh " `date` "@" `hostname`
echo "index"
echo "{"
echo " InstalledLocales"
echo " {"
# Following line generates index of ALL .txt files
# cat *.txt | grep "^[a-z]" | sed "s/\([a-zA-Z_]*\).*/ \1,/" | sort
cat $@ | grep "^[a-z]" | sed "s/\([a-zA-Z_]*\).*/ \1,/" | sort
echo " }"
echo "}"